import { createSlice } from '@reduxjs/toolkit'

const counter = createSlice({
	name: 'pickedMeals',
	initialState: {
		value: [],
	},
	reducers: {
		updPickedMeals: (state, action) => {
			state.value = [...action.payload]
		}
	},
})

export default counter.reducer
export const { updPickedMeals } = counter.actions
